package com.tian.controller;
import com.tian.service.MapService;
import com.tian.vo.PageResult;
import com.tian.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/map")
@CrossOrigin
public class MapController {
    @Autowired
    private MapService mapService;
    @GetMapping("/user")
    public SysResult getList(PageResult pageResult){
        pageResult = mapService.getList(pageResult);
//        System.out.println(SysResult.success(pageResult)+"这是返回值");
        return SysResult.success(pageResult);
    }
    @DeleteMapping("/delete/{id}")
    public SysResult deleteById(@PathVariable Integer id){
//        hospitalService.deleteById(id);

        return SysResult.success();
    }

}
